import { get } from "../util/request";

//默认搜索
export const defaultSearchAPI = (params) =>
  get("/search/suggest?keywords=" + params);

//搜索
export const searchAPI = (params) => get("/cloudsearch?keywords=" + params);

//轮播图
export const reqBannerAPI = () => get("/banner");
//推荐歌单
export const RecommendAPI = () => get("/personalized");
//获取歌单详情
export const getSongListDetailAPI = (id) => get("/playlist/detail?id=" + id);
//推荐新音乐
export const NewsongAPI = () => get("/personalized/newsong");
//精品歌单分类
export const PlaylisttagAPI = () => get("/playlist/highquality/tags");
//私人fm
export const fmAPI = () => get("/personal_fm");

//获取歌曲的信息
export const loadMusicAPI = (id) => get("/song/detail?ids=" + id);
//推荐喜欢的歌曲
export const songSimi = (id) => get("/simi/song?id=" + id);
//这首歌的评论
export const songComment = (id) => get("/comment/music?id=" + id);
//这首歌的歌词
export const songLyric = (id) => get("/lyric?id=" + id);
//这首歌的id
export const songUrl = (id) => get("/song/url?id=" + id);

//获取歌曲信息
export const newlistenAPI = (id) => get("/song/url?id=" + id);
